import { Injectable } from '@angular/core';
import { AppConsts } from '@core/abp/AppConsts';
import { Abp } from '../Abp';

@Injectable()
export class AppAuthService {
  logout(reload?: boolean): void {
    Abp.auth.clearToken();
    if (reload !== false) {
      location.href = AppConsts.appBaseUrl;
    }
  }
}
